<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/h_header_css.php';
		?>
		<script src='public/h_ui/static/h-ui.admin/js/H-ui.admin.js'></script>
	</head>
	<style>
		td{
			font-size: 18px
		}
		span{
			color: red
		}
		.blod{
			font-weight: bold;
		}
	</style>
<body>
<div class="page-container">
	<p class="f-20 text-success">欢迎使用<?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></p>
	<!-- <p>登录次数：18 </p> -->
	<p>上次登录IP：<?php echo getSess(SESS_USER)['ip'] ?> &nbsp;&nbsp;&nbsp; 上次登录时间：<?php echo date('Y-m-d H:i:s',getSess(SESS_USER)['updated']) ?></p>
	<table class="table table-border table-bordered table-bg mt-20">
		<thead>
			<tr>
				<th colspan="2" scope="col">服务器信息</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>当前登陆用户 </td>
				<td><?php echo getSess(SESS_USER)['username'].'（'.$role.'）' ?></td>
			</tr>
			<?php if($href): ?>
			<tr class='blod'>
				<td>反馈信息提醒</td>
				<td><a data-href="<?=$href?>" onclick="Hui_admin_tab(this);" data-title="<?=$href_title?>" href="javascript:void(0)">您有<span><?=$feedbackcount[0]['count']?></span>条反馈信息待处理</a></td>
			</tr>
			<?php endif ?>
			<tr class='blod'>
				<td>个人反馈信息提醒</td>
				<td><a data-href="<?=$href_teacher?>" onclick="Hui_admin_tab(this);" data-title="<?=$href_teacher_title?>" href="javascript:void(0)">您有<span><?=$feedbackcountTeacher[0]['count']?></span>条个人转发反馈信息待处理</a></td>
			</tr>
			
			
		</tbody>
	</table>
</div>
<!-- <button id="aa">sda</button> -->
</body>
<script>
	var time=<?php echo time() ?>;
	changeSeverTime(time);
	setInterval(function(){
		time=parseInt(time)+1;
		changeSeverTime(time);
	},1000);
	function changeSeverTime(time){
		var time2 = new Date(parseInt(time)*1000);
		$('.sever-time').html(time2);
	}

	// $(function(){
	// 	$('#aa').click(function(){
	// 		window.parent.showMessageRemind('asdsadas');
	// 	});
	// })
</script>
</html>